﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ZK.CoalYardTransManage.Test
{
    public partial class led彩色显示屏 : Form
    {

        

        public led彩色显示屏()
        {
            InitializeComponent();
           
        }
        /// <summary>
        /// 设置长宽
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            int longs =Convert.ToInt32(textBoxLong.Text.Trim());
            int wide =Convert.ToInt32(textBoxWide.Text.Trim());
            richTextBoxNr.Height = wide;
            richTextBoxNr.Width = longs;

        }
        /// <summary>
        /// 显示内容
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            richTextBoxNr.Text = richTextBoxY.Text;
        }
        /// <summary>
        /// timer控件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void timer1_Tick(object sender, EventArgs e)
        {
            //汉字轮播
            //label3.Text = label3.Text.Substring(1) + label3.Text.Substring(0, 1);
            label3.Text = label3.Text.Substring(label3.Text.Length - 1, 1) + label3.Text.Substring(0, label3.Text.Length - 1);
        }
    }
}
